﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    /// <summary>
    /// 工作流表单详情实体
    /// </summary>
    public class OverFlowTaskDTO
    {
        /// <summary>
        /// 主表键值对
        /// </summary>
        public List<OverFlowTaskItem> Contents { get; set; }
        /// <summary>
        /// 子表键值对
        /// </summary>
        public List<OverFlowTaskItem> Subs { get; set; }

        /// <summary>
        /// 审核人列表
        /// </summary>
        public List<Approver> Chks { get; set; }

        /// <summary>
        /// 推下级信息
        /// </summary>
        public SendInfo Send { get; set; }

    }
    /// <summary>
    /// 详情明细
    /// </summary>
    public class OverFlowTaskItem 
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Value { get; set; }
    }

    /// <summary>
    /// 审批人集合
    /// </summary>
    public class Approver
    {
        /// <summary>
        /// 钉钉ID
        /// </summary>
        public string Id { get; set; }  
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 任务描述
        /// </summary>
        public string Des { get; set; }
        /// <summary>
        /// 是否显示连接线
        /// </summary>
        public bool iShow { get; set; }
        /// <summary>
        /// 样式名
        /// </summary>
        public string Style { get; set; }
    }

    /// <summary>
    /// 推下级信息
    /// </summary>
    public class SendInfo
    {
        /// <summary>
        /// 推送下级用户的钉钉ID
        /// </summary>
        public List<string> Users { get; set; }
        /// <summary>
        /// 推送下级的文字说明
        /// </summary>
        public string Text { get; set; }
    }

}
